Skip to content

Some optimizations in SceneGraph code#1167

Merged
kfarr merged 2 commits intomainfrom
break-loop-when-found
Jun 23, 2025
Merged

Some optimizations in SceneGraph code#1167
kfarr merged 2 commits intomainfrom
break-loop-when-found

Conversation

@vincentfretin
Copy link
Collaborator

Break the for loop when entity is found in SceneGraph selectEntity
No need to still iterate over entities and do a comparison if we found the entity.

In scenegraph/Entity.js, simplify getting visible property, it's okay to always use entity.object3D.visible, not need to check if it's a-scene.

Backport changes from aframevr/aframe-inspector#809

@vincentfretin vincentfretin moved this to For Review in 3DStreet Dev Tracking Jun 21, 2025
@vincentfretin vincentfretin self-assigned this Jun 21, 2025
@vincentfretin vincentfretin requested a review from kfarr June 21, 2025 11:47
@kfarr kfarr merged commit 6a61fe8 into main Jun 23, 2025
1 check passed
@kfarr kfarr deleted the break-loop-when-found branch June 23, 2025 00:40
@github-project-automation github-project-automation bot moved this from For Review to Done in 3DStreet Dev Tracking Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants